<HTML>
<HEAD>
<meta charset="UTF-8">
<title>SegmentationProcessor - amazon-chime-sdk</title>
<link rel="stylesheet" href="../../../style.css">
</HEAD>
<BODY>
<a href="../../index.html">amazon-chime-sdk</a>&nbsp;/&nbsp;<a href="../index.html">com.amazonaws.services.chime.sdk.meetings.audiovideo.video.backgroundfilter</a>&nbsp;/&nbsp;<a href="./index.html">SegmentationProcessor</a><br/>
<br/>
<h1>SegmentationProcessor</h1>
<code><span class="keyword">class </span><span class="identifier">SegmentationProcessor</span></code>
<p><a href="./index.html">SegmentationProcessor</a> predicts foreground mask for an image.</p>
<h3>Constructors</h3>
<table>
<tbody>
<tr>
<td>
<h4><a href="-init-.html">&lt;init&gt;</a></h4>
</td>
<td>
<p><a href="./index.html">SegmentationProcessor</a> predicts foreground mask for an image.</p>
<code><span class="identifier">SegmentationProcessor</span><span class="symbol">(</span><span class="identifier" id="com.amazonaws.services.chime.sdk.meetings.audiovideo.video.backgroundfilter.SegmentationProcessor$<init>(android.content.Context)/context">context</span><span class="symbol">:</span>&nbsp;<a href="https://developer.android.com/reference/android/content/Context.html"><span class="identifier">Context</span></a><span class="symbol">)</span></code></td>
</tr>
</tbody>
</table>
<h3>Properties</h3>
<table>
<tbody>
<tr>
<td>
<h4><a href="context.html">context</a></h4>
</td>
<td>
<code><span class="keyword">val </span><span class="identifier">context</span><span class="symbol">: </span><a href="https://developer.android.com/reference/android/content/Context.html"><span class="identifier">Context</span></a></code></td>
</tr>
<tr>
<td>
<h4><a href="model-state.html">modelState</a></h4>
</td>
<td>
<code><span class="keyword">lateinit</span> <span class="keyword">var </span><span class="identifier">modelState</span><span class="symbol">: </span><span class="identifier">ModelState</span></code></td>
</tr>
</tbody>
</table>
<h3>Functions</h3>
<table>
<tbody>
<tr>
<td>
<h4><a href="get-input-buffer.html">getInputBuffer</a></h4>
</td>
<td>
<p>Retrieve input image on which segmentation can be applied.</p>
<code><span class="keyword">fun </span><span class="identifier">getInputBuffer</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><a href="https://docs.oracle.com/javase/6/docs/api/java/nio/ByteBuffer.html"><span class="identifier">ByteBuffer</span></a></code></td>
</tr>
<tr>
<td>
<h4><a href="get-output-buffer.html">getOutputBuffer</a></h4>
</td>
<td>
<p>Retrieve segmented image mask.</p>
<code><span class="keyword">fun </span><span class="identifier">getOutputBuffer</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><a href="https://docs.oracle.com/javase/6/docs/api/java/nio/ByteBuffer.html"><span class="identifier">ByteBuffer</span></a></code></td>
</tr>
<tr>
<td>
<h4><a href="initialize.html">initialize</a></h4>
</td>
<td>
<p>Initialize and load the tensorflow model.</p>
<code><span class="keyword">fun </span><span class="identifier">initialize</span><span class="symbol">(</span><span class="identifier" id="com.amazonaws.services.chime.sdk.meetings.audiovideo.video.backgroundfilter.SegmentationProcessor$initialize(kotlin.Int, kotlin.Int, com.amazonaws.services.chime.sdk.meetings.audiovideo.video.backgroundfilter.ModelShape)/width">width</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html"><span class="identifier">Int</span></a><span class="symbol">, </span><span class="identifier" id="com.amazonaws.services.chime.sdk.meetings.audiovideo.video.backgroundfilter.SegmentationProcessor$initialize(kotlin.Int, kotlin.Int, com.amazonaws.services.chime.sdk.meetings.audiovideo.video.backgroundfilter.ModelShape)/height">height</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html"><span class="identifier">Int</span></a><span class="symbol">, </span><span class="identifier" id="com.amazonaws.services.chime.sdk.meetings.audiovideo.video.backgroundfilter.SegmentationProcessor$initialize(kotlin.Int, kotlin.Int, com.amazonaws.services.chime.sdk.meetings.audiovideo.video.backgroundfilter.ModelShape)/modelShape">modelShape</span><span class="symbol">:</span>&nbsp;<a href="../-model-shape/index.html"><span class="identifier">ModelShape</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a></code></td>
</tr>
<tr>
<td>
<h4><a href="predict.html">predict</a></h4>
</td>
<td>
<p>Predicts the foreground on the input image.</p>
<code><span class="keyword">fun </span><span class="identifier">predict</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">PredictResult</span></code></td>
</tr>
</tbody>
</table>
<h3>Companion Object Properties</h3>
<table>
<tbody>
<tr>
<td>
<h4><a href="is-machine-learning-library-loaded.html">isMachineLearningLibraryLoaded</a></h4>
</td>
<td>
<code><span class="keyword">var </span><span class="identifier">isMachineLearningLibraryLoaded</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html"><span class="identifier">Boolean</span></a></code></td>
</tr>
</tbody>
</table>
</BODY>
</HTML>
